package edu.hunan.cxb18.orm.pojo;

/**
 * @author chenheng
 * @create 2020-03-04 13:42
 */
public class Score {
    private Integer id;
    private Integer sid;
    private Integer cid;
    private double score;
    private Course course;
    private Student student;

    public Score(Integer sid, Integer cid, double score) {
        this.sid = sid;
        this.cid = cid;
        this.score = score;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    public Score(Integer sid, Integer cid) {
        this.sid = sid;
        this.cid = cid;
    }

    @Override
    public String toString() {
        return "Score{" +
                "id=" + id +
                ", sid=" + sid +
                ", cid=" + cid +
                ", score=" + score +
                ", course=" + course +
                ", student=" + student +
                '}';
    }

    public Score() {
        this.sid = sid;
        this.cid = cid;
        this.score = score;
    }
}
